package com.bjpowernode.crm.service.impl;

import com.bjpowernode.crm.mapper.ValueMapper;
import com.bjpowernode.crm.pojo.Type;
import com.bjpowernode.crm.pojo.Value;
import com.bjpowernode.crm.service.ValueService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ValueServiceImpl implements ValueService {
    @Resource
    private ValueMapper valueMapper;

    @Override
    public List<Value> getValue() {
        return valueMapper.getValue();
    }

    @Override
    public List<Type> getOption() {
        return valueMapper.getOption();
    }

    @Override
    public void addValue(Value value) {
        valueMapper.addValue(value);
    }

    @Override
    public int delValue(String[] ids) {
        return valueMapper.delValue(ids);
    }

    @Override
    public Value getEditValue(String id) {
        return valueMapper.getEditValue(id);
    }

    @Override
    public void editValue(Value value) {
        valueMapper.editValue(value);
    }

    @Override
    public List<Value> getAll() {
        return valueMapper.getValue();
    }
}
